<?php

class MaintainCommand extends CConsoleCommand {
	
	public function run($args) {
		
        var_dump(Yii::app()->db->driverName);
        list($host, $dbname) = explode(';', Yii::app()->db->connectionString);

        list(, $host) = explode('=', $host);
        list(, $dbname) = explode('=', $dbname);

        var_dump($dbname);
        var_dump($host);
	}
	
	public function actionClean() {
		
	}
}
